The write command causes the MT to perform all actions which are necessary to establish communication between the TE and the network using one or more GPRS PDP types. This may include performing a GPRS attach and one or more PDP context activations. Commands following the
AT+CGDATA command in the AT command line will not be processed by the MT.
If no
<cid> is given or if there is no matching context definition, the MT will attempt to activate the context with PDP type IP and all other context parameters set to their default values (see
AT+CGDCONT,
AT+CGQREQ,
AT+CGQMIN).
If the
<L2P> parameter is omitted, the layer 2 protocol is unspecified and PPP will be used.
If the write command is successful, the MT issues the intermediate result code CONNECT and enters V.250 online data state.
After data transfer is complete, and the layer 2 protocol termination procedure has completed successfully, the command state is reentered and the MT returns the final result code OK.
If the
<L2P> parameter value is unacceptable to the MT, the MT returns ERROR or +CME ERROR.
In the event of erroneous termination or a failure to start up, the command state is reentered and the MT returns NO CARRIER, or if enabled +CME ERROR.